/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.musictalk.model.business;

import com.musictalk.view.ChatRoom;
import java.util.HashMap;

/**
 *
 * @author AIDEN
 */
public class ManageChatRoom {

    private static HashMap<String,ChatRoom> roomMap = new HashMap<String,ChatRoom>();

    public static void addChatRoom(String chatID,ChatRoom chat){
        ManageChatRoom.roomMap.put(chatID, chat);
    }

    public static ChatRoom getChatRoom(String chatID){
        return (ChatRoom)ManageChatRoom.roomMap.get(chatID);
    }

    public static HashMap<String, ChatRoom> getChatMap() {
        return roomMap;
    }
}
